import request from './request'

export const getAddRess = () => {
  const token = localStorage.getItem('token')
  if (token) {
    return request({
      url: '/api/address',
      method: 'get'
    })
  } else {
    console.log('未登录，无法获取地址')
  }
}
